]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
3 years agoUpdate Portuguese translation
Hugo Carvalho [Sat, 11 Feb 2023 22:36:10 +0000 (22:36 +0000)]
Update Portuguese translation

3 years agoUpdate Belarusian translation
Vasil Pupkin [Sat, 11 Feb 2023 22:06:24 +0000 (22:06 +0000)]
Update Belarusian translation

3 years agostatus/bluetooth: Add device menu
Florian Müllner [Mon, 8 Aug 2022 10:08:26 +0000 (12:08 +0200)]
status/bluetooth: Add device menu

The new quick toggle gives us a good place for exposing connected
and connectable devices. This was part of the original mockups,
but didn't make the cut for GNOME 43 due to time constraints.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/178

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2501>

3 years agostatus/bluetooth: Show connected devices in subtitle
Florian Müllner [Wed, 8 Feb 2023 13:31:10 +0000 (14:31 +0100)]
status/bluetooth: Show connected devices in subtitle

Now that quick toggles support subtitles, use it to indicate connected
devices.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2501>

3 years agoUpdate Persian translation
Danial Behzadi [Sat, 11 Feb 2023 17:15:36 +0000 (17:15 +0000)]
Update Persian translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 11 Feb 2023 17:15:11 +0000 (17:15 +0000)]
Update Ukrainian translation

3 years agoUpdate Belarusian translation
Vasil Pupkin [Sat, 11 Feb 2023 15:06:57 +0000 (15:06 +0000)]
Update Belarusian translation

3 years agoquickSettings: Fix MenuToggle clicks
Florian Müllner [Sat, 11 Feb 2023 12:35:20 +0000 (13:35 +0100)]
quickSettings: Fix MenuToggle clicks

With the split menu toggle, the actual clicks now happen on the
internal quick toggle, not the menu toggle as a whole where callers
expect it.

Forward the signal to fix that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2636>

3 years agoUpdate Persian translation
Danial Behzadi [Sat, 11 Feb 2023 01:00:22 +0000 (01:00 +0000)]
Update Persian translation

3 years agoUpdate Turkish translation
Sabri Ünal [Fri, 10 Feb 2023 22:37:44 +0000 (22:37 +0000)]
Update Turkish translation

3 years agostatus/volume: Mute/unmute when clicking icon
Florian Müllner [Wed, 8 Feb 2023 00:34:47 +0000 (01:34 +0100)]
status/volume: Mute/unmute when clicking icon

This behavior was lost with the move to quick settings. Now that
we allow slider icons to be interactive, we can easily restore
the feature (and even in a less-Easter-eggy way)

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5974

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2630>

3 years agoquickSettings: Allow interactive slider icons
Florian Müllner [Wed, 8 Feb 2023 00:32:52 +0000 (01:32 +0100)]
quickSettings: Allow interactive slider icons

Before the move to quick settings, it was possible to mute the volume
by clicking to the left of the slider. In order to re-enable that
feature, allow slider icons to be interactive.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5974

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2630>

3 years agowindow-tracker: Only emit ::tracked-windows-changed on title changes
Carlos Garnacho [Fri, 10 Feb 2023 14:07:50 +0000 (15:07 +0100)]
window-tracker: Only emit ::tracked-windows-changed on title changes

Since commit a1d650ce27, window title changes are listened for in the
ShellWindowTracker in order to emit ::tracked-windows-changed when
there are window title changes.

The rest of the things that happen in between (removing the window
from a ShellApp, possibly have it destroyed, and possibly creating a
new ShellApp to re-insert the window) are superfluous and even result
in the altTab switcher popup ending up confused about the applications
available.

Only emit the signal so changes can be followed on D-Bus, but avoid
the ShellApp fiddling otherwise.

Fixes: a1d650ce27 - window-tracker: Emit 'tracked-windows-changed' on title changes
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6385
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2634>

3 years agoUpdate Hebrew translation
Yosef Or Boczko [Fri, 10 Feb 2023 12:17:37 +0000 (12:17 +0000)]
Update Hebrew translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 10 Feb 2023 12:00:40 +0000 (12:00 +0000)]
Update Georgian translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 10 Feb 2023 10:12:44 +0000 (10:12 +0000)]
Update Georgian translation

3 years agoUpdate Turkish translation
Sabri Ünal [Fri, 10 Feb 2023 05:54:10 +0000 (05:54 +0000)]
Update Turkish translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Fri, 10 Feb 2023 01:30:00 +0000 (01:30 +0000)]
Update Indonesian translation

3 years agoquickSettings: Add small border to menu toggles
Florian Müllner [Wed, 18 Jan 2023 16:46:35 +0000 (17:46 +0100)]
quickSettings: Add small border to menu toggles

The slightly lighter background of the menu button turned out
to not be quite enough to indicate that it's a separate control
from the main toggle. Address this with a small border between
the two elements.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5963

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2632>

3 years agoquickSettings: Split menu toggle
Florian Müllner [Mon, 22 Aug 2022 23:29:10 +0000 (01:29 +0200)]
quickSettings: Split menu toggle

Menu toggles are currently regular toggles with an additional
arrow button. This allows for a simpler implementation, but
has downsides with regards to keyboard navigation and hover
feedback.

To make it more obvious that the two parts of the menu toggle
perform different actions, change the overall structure of the
toggle to *contain* a regular toggle and the menu button.

That way each element uses its own hover effect, and shows up
in the keynav focus chain.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5964

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2632>

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Thu, 9 Feb 2023 21:32:45 +0000 (21:32 +0000)]
Update Ukrainian translation

3 years agostylesheet: Papercut fixes
Sam Hewitt [Thu, 9 Feb 2023 18:52:37 +0000 (15:22 -0330)]
stylesheet: Papercut fixes

- remove highlight on the dash
- increase the spacing in quick settings pills
- adjust the font weights on the lockscreen

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2633>

3 years agostatus/volume: Use same icon for slider/top bar
Florian Müllner [Fri, 7 Oct 2022 12:21:08 +0000 (14:21 +0200)]
status/volume: Use same icon for slider/top bar

Currently the icon in the top bar indicates the volume level, while
the icon next to the slider indicates the type of output (speaker
or headphone). The speaker- and volume icons are quite similar,
but different enough to feel inconsistent, so use the volume one
in both cases.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5940

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2505>

3 years agolayout: Add work-around for testing greeter UI in nested
Florian Müllner [Fri, 2 Dec 2022 19:52:44 +0000 (20:52 +0100)]
layout: Add work-around for testing greeter UI in nested

Testing the greeter UI in nested has been broken for a long time
now, because the backend isn't ready yet when we try to push a
modal (via the screen shield).

As running nested is only relevant for development and testing,
working around the issue rather than fixing it properly seems
fine, so do just that and slightly delay startup when testing
the greeter UI.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2573>

3 years agostatus/network: Tweak connection items
Florian Müllner [Wed, 8 Feb 2023 15:03:24 +0000 (16:03 +0100)]
status/network: Tweak connection items

Always use the plain name as label, and indicate the "(dis)connect"
action in a subtitle.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2631>

3 years agostatus/system: Use a better icon in screenshot button
two [Tue, 22 Nov 2022 20:50:49 +0000 (20:50 +0000)]
status/system: Use a better icon in screenshot button

The screenshot button could be mistaken for one that opens a
program for taking photos and videos. Change it to one that
is less ambiguous.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5993

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2553>

3 years agoUpdate Galician translation
Fran Dieguez [Wed, 8 Feb 2023 18:51:58 +0000 (18:51 +0000)]
Update Galician translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Wed, 8 Feb 2023 18:16:35 +0000 (18:16 +0000)]
Update Ukrainian translation

3 years agoAdd ClutterFrame arguments to after-paint signal handlers
Jonas Dreßler [Wed, 8 Feb 2023 15:42:18 +0000 (16:42 +0100)]
Add ClutterFrame arguments to after-paint signal handlers

The ClutterFrame argument was added to several signals with mutter commit
08b0e563d4d0088e19d24f3199626a2d27349d09. We have a bunch of after-paint
handlers in gnome-shell too, and updating those was apparently forgotten,
introducing subtle memory corruption that was luckily easy to track down by
running gnome-shell with ASAN enabled. Let's fix that and add the additional
argument to all the signal handlers.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2629>

3 years agost/test-theme: Use the gsettings memory backend
Sebastian Wick [Wed, 8 Feb 2023 15:36:06 +0000 (16:36 +0100)]
st/test-theme: Use the gsettings memory backend

Mutter test context now make sure that they are run with the gsettings
memory backend to avoid the local environment to affect the tests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2628>

3 years agoUpdate Turkish translation
Sabri Ünal [Wed, 8 Feb 2023 12:50:38 +0000 (12:50 +0000)]
Update Turkish translation

3 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 8 Feb 2023 11:03:29 +0000 (11:03 +0000)]
Update Portuguese translation

3 years agoUpdate Belarusian translation
Vasil Pupkin [Wed, 8 Feb 2023 10:24:46 +0000 (10:24 +0000)]
Update Belarusian translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Wed, 8 Feb 2023 07:42:17 +0000 (07:42 +0000)]
Update Georgian translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Wed, 8 Feb 2023 04:04:58 +0000 (04:04 +0000)]
Update Indonesian translation

3 years agoUpdate Hebrew translation
Yosef Or Boczko [Tue, 7 Feb 2023 20:13:40 +0000 (20:13 +0000)]
Update Hebrew translation

3 years agoa11y menu: Add "All Accessibility Settings" entry
sunflowerskater [Fri, 13 Jan 2023 17:29:13 +0000 (14:29 -0300)]
a11y menu: Add "All Accessibility Settings" entry

Unlike other top bar menus, the accessibility menu doesn't provide
quick access to the corresponding settings. It's still useful, given
that not all settings are exposed in the menu, so add a settings entry.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6058

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2615>

3 years agogeneral: Rename "application" to "app"
sunflowerskater [Fri, 16 Dec 2022 21:33:10 +0000 (18:33 -0300)]
general: Rename "application" to "app"

Several places in Shell use the word "application". However,"app"
is a more common term nowadays, so update strings accordingly.

https://gitlab.gnome.org/Teams/Design/initiatives/-/issues/123
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6202

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2614>

3 years agoUpdate Belarusian translation
Vasil Pupkin [Mon, 6 Feb 2023 19:42:59 +0000 (19:42 +0000)]
Update Belarusian translation

3 years agoAdd 'headless start' perf test
Jonas Ådahl [Thu, 2 Feb 2023 15:28:06 +0000 (16:28 +0100)]
Add 'headless start' perf test

This tests that GNOME Shell will launch sucessfully despite there being
no monitors on startup, and successfully hide and then show the
overview, once the monitor is connected.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agotests: Make perf tests non-parallel
Jonas Ådahl [Thu, 2 Feb 2023 15:50:13 +0000 (16:50 +0100)]
tests: Make perf tests non-parallel

We currently hard code the display name, and running multiple instances
at the same time will probably just make things too slow for CI.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agoperf-tool: Add --hotplug option
Jonas Ådahl [Thu, 2 Feb 2023 15:04:10 +0000 (16:04 +0100)]
perf-tool: Add --hotplug option

The --hotplug option works together with --headless and makes the perf
tool not add a persistant virtual monitor, allowing the perf test
themselves able to handle monitors.

This is needed for hotplug tests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agomain: Call init() in perf modules if it exists
Jonas Ådahl [Thu, 2 Feb 2023 15:01:43 +0000 (16:01 +0100)]
main: Call init() in perf modules if it exists

This is meant to let perf tests initialize themselves earlier than they
would otherwise run.

This allows them to setup the necessary dependencies, e.g. create
test monitors or similar actions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agooverviewControls: Don't hide destroyed child widget on unmap
Jonas Ådahl [Thu, 2 Feb 2023 14:54:05 +0000 (15:54 +0100)]
overviewControls: Don't hide destroyed child widget on unmap

When we unmap, the child widgets have already been destroyed, so we
shouldn't try to. To detect this, delete the references we keep to them
on destroy, and null-check the hide call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agooverviewControls: Update work area also on monitors-changed
Jonas Ådahl [Thu, 2 Feb 2023 14:52:03 +0000 (15:52 +0100)]
overviewControls: Update work area also on monitors-changed

The cached work area, which is the work area of the primary monitor,
effectively depends on two properties - the (global) work area and the
primary monitor - and we are only tracking changes to one of them. Also
track monitor changes to also cover the second case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agolayout: Explicitly destroy hot corners on shutdown
Jonas Ådahl [Thu, 2 Feb 2023 14:50:43 +0000 (15:50 +0100)]
layout: Explicitly destroy hot corners on shutdown

This won't be handled by our existing actor destruction path as the
ripple actors are added directly to the stage and not the uiGroup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agolayout: Disconnect 'monitors-changed' handler on shutdown
Jonas Ådahl [Thu, 2 Feb 2023 14:36:49 +0000 (15:36 +0100)]
layout: Disconnect 'monitors-changed' handler on shutdown

Doing it ourselves in the shutdown handler in layout.js means we won't
risk reacting to monitor changes that happen after gnome-shell prepares
to shutdown and the signal handler would disconnect itself in case we
used `connectObject(..)`.

This will currently never happen, but in the future perf tests will be
able to create virtual monitors for testing purposes, and they might get
destroyed during the shutdown procedures, causing us to react to them
when we shouldn't.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>

3 years agostatus/network: Only show custom wired names
Georges Basile Stavracas Neto [Mon, 6 Feb 2023 11:22:48 +0000 (08:22 -0300)]
status/network: Only show custom wired names

Thanks to NetworkManager's connection name disambiguation, it's
pretty common for single wired connections to be named "Wired". This
is fine and what we want almost all times, but in the specific case
of quick settings, we already have a "Wired" string set as title of
the quick settings toggle, so having that as subtitle is reduntant.

Hide the subtitle label (by returning null) when the subtitle of
a wired network matches the title.

Fixes ab10b95d2dc6bda1fc0fcc3b451e535f2fc160a8
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6369

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2627>

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 6 Feb 2023 09:41:14 +0000 (09:41 +0000)]
Update Ukrainian translation

3 years agoUpdate Galician translation
Fran Dieguez [Sun, 5 Feb 2023 21:05:13 +0000 (21:05 +0000)]
Update Galician translation

3 years agoUpdate German translation
Tim Sabsch [Sun, 5 Feb 2023 19:50:18 +0000 (19:50 +0000)]
Update German translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Sun, 5 Feb 2023 09:08:39 +0000 (09:08 +0000)]
Update Indonesian translation

3 years agoUpdate Hebrew translation
Yosef Or Boczko [Sun, 5 Feb 2023 09:01:12 +0000 (09:01 +0000)]
Update Hebrew translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Sun, 5 Feb 2023 07:16:09 +0000 (07:16 +0000)]
Update Georgian translation

3 years agoworkspacesView: Remove obsolete cleanup
Florian Müllner [Sat, 4 Feb 2023 22:01:03 +0000 (23:01 +0100)]
workspacesView: Remove obsolete cleanup

Since commit a9f11b1f5a3e9, we no longer set up a later on
parent-set, so there's nothing to clean up.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2626>

3 years agostatus/network: Title mobile connections as "Mobile"
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 23:34:11 +0000 (20:34 -0300)]
status/network: Title mobile connections as "Mobile"

As per the latest mockups, modem network connections are labeled
"Mobile". Override _getDefaultName in NMModemToggle and always
return "Mobile" as title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Title bluetooth connections as "Tether"
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 23:31:58 +0000 (20:31 -0300)]
status/network: Title bluetooth connections as "Tether"

As per the latest mockups, Bluetooth network connections are simply
labeled "Tether". Override _getDefaultName in NMBluetoothToggle
and always return "Tether" as title.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Improve network toggle subtitles
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 15:25:01 +0000 (12:25 -0300)]
status/network: Improve network toggle subtitles

If there is a single connection for a given NMToggle subclass,
use the connection name; otherwise, transform that into '%d
connected'. This is better than the current "Device (counter)"
template, e.g. "VPN (2)", which would give us a quick toggle
with:

   VPN
   VPN (2)

Change that to e.g.:

  VPN
  2 connected

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Set default name for toggle title
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 18:00:28 +0000 (15:00 -0300)]
status/network: Set default name for toggle title

Following the previous commits where we left the quick toggle title
open for the new title scheme, set the titles for all network pills
to what currently is the "default" name.

That means, we pull the device name from Network Manager for devices,
through the disambiguate function, and hardcode 'VPN' for VPN
connections.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/network: Bind subtitle
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 17:57:20 +0000 (14:57 -0300)]
status/network: Bind subtitle

Instead of map the currently active items - for whatever they are -
into the quick toggle title, bind it to the subtitle.

This leaves room for setting static titles for device-backed
networks, such as Wi-Fi, Wired, Bluetooth, etc.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostatus/powerProfiles: Set profile name as subtitle
Georges Basile Stavracas Neto [Tue, 31 Jan 2023 17:38:39 +0000 (14:38 -0300)]
status/powerProfiles: Set profile name as subtitle

Just like with network names, set the name of the power profile as
the subtitle of the quick settings pill. This allows more of the
power profile name to be visible, and reduces chances of ellipsing
the name.

Rename the 'title' variable to 'name', to be more semantic and
better represent what it is now.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5770
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agostyle: Increase quick items' height
Georges Basile Stavracas Neto [Sat, 4 Feb 2023 13:01:34 +0000 (10:01 -0300)]
style: Increase quick items' height

As per design feedback, increase it to 48px height, so as to give
items more room for the subtitles.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agoquickSettings: Add 'subtitle' property
Georges Basile Stavracas Neto [Mon, 30 Jan 2023 20:57:42 +0000 (17:57 -0300)]
quickSettings: Add 'subtitle' property

Add a subtitle label to QuickToggle, with a less prominent font.
Make the subtitle invisible when no text is present.

This new property will be used by next commits to implement quick
settings with a static title, and a changing subtitle.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agoquickSettings: Rename 'label' property to 'title'
Georges Basile Stavracas Neto [Mon, 30 Jan 2023 20:32:39 +0000 (17:32 -0300)]
quickSettings: Rename 'label' property to 'title'

We'll soon add a subtitle, so rename the label property to something
that is a bit more semantic.Add a warning when trying to set the old
'label' property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2619>

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Sat, 4 Feb 2023 05:31:47 +0000 (05:31 +0000)]
Update Indonesian translation

3 years agoUpdate Indonesian translation
Kukuh Syafaat [Sat, 4 Feb 2023 05:23:34 +0000 (05:23 +0000)]
Update Indonesian translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Fri, 3 Feb 2023 19:39:15 +0000 (19:39 +0000)]
Update Ukrainian translation

3 years agoextension-tool: Fix falling back to GSettings
Florian Müllner [Tue, 22 Nov 2022 18:40:37 +0000 (19:40 +0100)]
extension-tool: Fix falling back to GSettings

When we switched the tool to the public Extensions service, the
fallback to GSettings broke in the case GNOME is installed but
not running (because the service can be autostarted, albeit it'll
fail later).

Fix this by also falling back when we don't get a response from
gnome-shell.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6127

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2552>

3 years agocroco: Use g_string_free() return value
Florian Müllner [Thu, 2 Feb 2023 22:37:21 +0000 (23:37 +0100)]
croco: Use g_string_free() return value

glib now warns if the return value is not used, so use the API as
intended instead of assigning the character data separately before
freeing the GString.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2625>

3 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 3 Feb 2023 13:23:29 +0000 (13:23 +0000)]
Update Turkish translation

3 years agoUpdate Georgian translation
Ekaterine Papava [Fri, 3 Feb 2023 04:58:51 +0000 (04:58 +0000)]
Update Georgian translation

3 years agost/texture-cache: Port to StIconTheme
Florian Müllner [Thu, 26 Jan 2023 02:36:03 +0000 (03:36 +0100)]
st/texture-cache: Port to StIconTheme

It's finally time to pull the switch and replace GtkIconTheme with
out modified copy. This removes another Gtk dependency that ties
us to the old Gtk3.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Stop using GdkRGBA for coloring symbolics
Florian Müllner [Wed, 25 Jan 2023 18:29:25 +0000 (19:29 +0100)]
st/icon-theme: Stop using GdkRGBA for coloring symbolics

We already have ClutterColor to represent a color, and StIconColors
to hold color information for symbolics from CSS. Now that we moved
GtkIconTheme in-tree, we can make use of those types instead of
translating back and forth from GdkRGBA.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Change namespace to ST
Florian Müllner [Thu, 26 Jan 2023 02:36:03 +0000 (03:36 +0100)]
st/icon-theme: Change namespace to ST

We are still linking to GTK, and extensions may import GTK for
whatever reason, so avoid conflicts by moving the copied GTK
code into our namespace.

With that and the previous adjustments, the new code is now
finally buildable.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Start using g_autofree
Florian Müllner [Wed, 1 Feb 2023 16:46:58 +0000 (17:46 +0100)]
st/icon-theme: Start using g_autofree

We don't have to refrain from g_auto for compatibility reasons,
so start using it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace slice allocator
Florian Müllner [Wed, 25 Jan 2023 17:36:08 +0000 (18:36 +0100)]
st/icon-theme: Replace slice allocator

Its use has been discouraged for years, and glib recently deprecated
it officially (while turning it around a small wrapper around malloc).

Don't let it sneak back in through some old GTK3 code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace g_get_current_time ()
Florian Müllner [Wed, 1 Feb 2023 15:25:10 +0000 (16:25 +0100)]
st/icon-theme: Replace g_get_current_time ()

GTimeVal has been deprecated a while ago, don't let it sneak back
in via some old GTK code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Use standard GObject macros
Florian Müllner [Wed, 1 Feb 2023 15:10:28 +0000 (16:10 +0100)]
st/icon-theme: Use standard GObject macros

The GTK code predates the G_DECLARE_*() macros, so it's under- standable
that it still does all the boilerplate manually. We
don't have that excuse in 2023, so move the the standard macros.

There is no reason for GtkIconTheme to be derivable, and as that
means that the instance struct itself is private, stop adding
separate private instance data.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace GTK's custom i18n support
Florian Müllner [Wed, 1 Feb 2023 14:24:09 +0000 (15:24 +0100)]
st/icon-theme: Replace GTK's custom i18n support

GTK uses its own private i18n header, which most notably defines
an I_() macro for interning static strings. That may be a worthwhile
idea for the entire codebase, but as it's out of scope for this
change set, just use the standard i18n support from glib for now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove GdkScreen/GtkStyleContext integration
Florian Müllner [Wed, 1 Feb 2023 14:36:19 +0000 (15:36 +0100)]
st/icon-theme: Remove GdkScreen/GtkStyleContext integration

Those are GTK internals that don't apply to us. Without the distinct
"screen's default icon theme", we also don't need custom theme support,
and can just always track the theme from StSettings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove deprecated API
Florian Müllner [Wed, 1 Feb 2023 13:42:38 +0000 (14:42 +0100)]
st/icon-theme: Remove deprecated API

We aren't subject to GTK3's API stability, so there's no reason
for dragging old stuff along.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Replace GTK debug code
Florian Müllner [Thu, 26 Jan 2023 02:36:03 +0000 (03:36 +0100)]
st/icon-theme: Replace GTK debug code

We won't copy GTK's debug logging, so either remove messages or
turn them into reglar g_debug() calls.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove Win32 compatibility
Florian Müllner [Thu, 26 Jan 2023 00:41:32 +0000 (01:41 +0100)]
st/icon-theme: Remove Win32 compatibility

gnome-shell does not run on Windows, and if someone was crazy enough
to try to make it work, the icon theme support would be the least
of their worries.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Standard types
Florian Müllner [Thu, 26 Jan 2023 02:32:52 +0000 (03:32 +0100)]
st/icon-theme: Standard types

The GTK code dates back to a time when "gchar" and friends were
still considered a good idea. Replace them with standard types
except for "guint" (I'm lazy) and GtkIconCache code that relies
on glib's byte order macros.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Use regular idle source over gdk_threads
Florian Müllner [Wed, 1 Feb 2023 15:59:38 +0000 (16:59 +0100)]
st/icon-theme: Use regular idle source over gdk_threads

The shell code isn't threaded, so there's no reason for pulling
in Gdk's thread support.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Define default icon theme
Florian Müllner [Wed, 1 Feb 2023 15:57:35 +0000 (16:57 +0100)]
st/icon-theme: Define default icon theme

In GTK, the value comes from another private header. It doesn't
make sense to copy it in its entirety, just define the one value
we actually need ourselves.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Remove unused header
Florian Müllner [Wed, 1 Feb 2023 20:32:46 +0000 (21:32 +0100)]
st/icon-theme: Remove unused header

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Merge private header
Florian Müllner [Wed, 1 Feb 2023 12:21:08 +0000 (13:21 +0100)]
st/icon-theme: Merge private header

GtkIconTheme's headers are split between a public and a private
one. We won't expose the icon theme API at all, nor do we need
to access anything beyond what the texture cache is currently
using, so merge the private header into the implementation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Copy GdkPixbuf utility code
Florian Müllner [Wed, 1 Feb 2023 14:19:47 +0000 (15:19 +0100)]
st/icon-theme: Copy GdkPixbuf utility code

GTK includes a couple of shared private GdkPixbuf utilities
functions. We don't have a need for sharing that code, just
for the bits that are used by the IconTheme code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/icon-theme: Copy GTK3 code in-tree
Florian Müllner [Tue, 10 Jan 2023 19:40:21 +0000 (20:40 +0100)]
st/icon-theme: Copy GTK3 code in-tree

GTK4 changed icon loading significantly, it is now closely tied
to snapshots and paintables. This makes a port highly unrealistic,
so to avoid staying stuck on GTK3 forever, copy the relevant code
into the tree.

The code is unmodified except for the include names and replacing
some stray tab indentation. It is still full of GTK internals, so
it will take a while before we can actually build it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agost/texture-cache: Remove unused struct member
Florian Müllner [Wed, 4 Jan 2023 13:01:56 +0000 (14:01 +0100)]
st/texture-cache: Remove unused struct member

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>

3 years agoshell/window-preview-layout: Add precondition checks
Florian Müllner [Thu, 2 Feb 2023 13:56:45 +0000 (14:56 +0100)]
shell/window-preview-layout: Add precondition checks

It's good practice to guard public API against programmer errors,
so do that.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6351

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2622>

3 years agoshell/window-preview-layout: Mark return value as nullable
Florian Müllner [Thu, 2 Feb 2023 13:55:37 +0000 (14:55 +0100)]
shell/window-preview-layout: Mark return value as nullable

The function may return null, so we should mark it as such, even
if that information is currently unused.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6351

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2622>

3 years agoshellMountOperation: Don't read unavailable desktop file
Balló György [Thu, 2 Feb 2023 07:26:20 +0000 (07:26 +0000)]
shellMountOperation: Don't read unavailable desktop file

If gnome-disk-utility is not installed on the system, its desktop file is
unavailable, so we can't get the application's name. In this case hide
the launcher button.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2621>

3 years agoUpdate Galician translation
Fran Dieguez [Wed, 1 Feb 2023 18:49:24 +0000 (18:49 +0000)]
Update Galician translation

3 years agoinputMethod: Make set_surrounding() send also empty string
Takao Fujiwara [Tue, 31 Jan 2023 08:42:23 +0000 (17:42 +0900)]
inputMethod: Make set_surrounding() send also empty string

Empty surrounding text values needs to be sent to IBus engines
so that the engines know the focus is changed and the values are
updated.
Also InputMethod can forward the "require-surrounding-text" signal
from IBus engine to mutter.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5895
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2496>

3 years agoappDisplay: Simplify loading Folder apps a bit
Jonas Dreßler [Fri, 24 Jun 2022 17:25:24 +0000 (19:25 +0200)]
appDisplay: Simplify loading Folder apps a bit

Instead of plugging into _redisplay(), we can use _loadApps() for this.
It's actually exactly what _loadApps() is meant for...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Move findBestPageToAppend() behavior to IconGrid
Jonas Dreßler [Fri, 24 Jun 2022 14:02:54 +0000 (16:02 +0200)]
appDisplay: Move findBestPageToAppend() behavior to IconGrid

This behavior makes more sense to have in the iconGrid itself: When a
page is filled up with items, the new item should never go to the start
of the next page, but always to next empty slot.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoappDisplay: Fix multi-page dragging behavior in folders
Jonas Dreßler [Fri, 24 Jun 2022 13:17:51 +0000 (15:17 +0200)]
appDisplay: Fix multi-page dragging behavior in folders

Folders reflow across pages because they don't set
allow_incomplete_pages to true. This means we want the nudging of items
to happen slightly differently when dragging an item across pages:

- When dragging from lower page index to a higher one, always reflow
towards the start of the grid (because there's now an empty slot on the
old page and items on the new page will force-reflow towards that)
- When dragging from a higher page index to a lower one, we can reflow to
the end as we usually do

To archive this, factor out the selection of "reflow direction" into a
separate variable that always defaults to "end" (because empty space is
always at the end of the grid). Set it to "start" when the item created an
empty slot on the current page or (and this is new:) on a previous page in
the folder case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>

3 years agoiconGrid: Also consider left/right empty space as drop targets
Jonas Dreßler [Fri, 24 Jun 2022 11:50:42 +0000 (13:50 +0200)]
iconGrid: Also consider left/right empty space as drop targets

Make it a bit easier to drag items to the start of pages by also taking
the left and right empty space into account, instead of considering it
an invalid target.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2348>